package com.igeek.collateral.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.igeek.collateral.entity.Inbound;
import com.igeek.collateral.entity.Outbound;
import com.baomidou.mybatisplus.extension.service.IService;
import com.igeek.collateral.vo.PageQueryVO;
import com.igeek.collateral.vo.ZOutboundVo;

/**
 * <p>
 * 出库记录 服务类
 * </p>
 *
 * @author author
 * @since 2024-07-04
 */
public interface IOutboundService extends IService<Outbound> {

    Page<Outbound> findPageOut(PageQueryVO vo);

    boolean add(Outbound outbound, Integer collateralId);

    Page<Outbound> findPageZ(PageQueryVO vo);

    Page<Outbound> findPageR(PageQueryVO vo);

    Page<Outbound> findPageT(PageQueryVO vo);

    boolean updateRS(Outbound outbound, Integer collateralId);

    boolean updatePart(ZOutboundVo vo, Integer outboundId);

    boolean delete(Long id);

    int check(Integer collateralId);

    boolean deleteMessByCid(Integer collId);
}
